package com.jhgk.jhcee.system.service;

import com.jhgk.jhcee.common.resultful.BasisResultful;
import com.jhgk.jhcee.system.domain.model.SysResourceInfoModel;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author: xiezhongping
 * @description:
 * @date: 2021/8/26 9:11.
 */
public interface SysResourceInfoService {

    Map<String, List<String>> initResourceRolesMap();

    BasisResultful<Object> getResourceListAll(SysResourceInfoModel model);

    BasisResultful<Object> getModuleResource();

    @Transactional
    BasisResultful<Object> saveResource(SysResourceInfoModel model);

    @Transactional
    BasisResultful<Object> addResource(SysResourceInfoModel model);

    @Transactional
    BasisResultful<Object> deleteResource(SysResourceInfoModel model);

    @Transactional
    BasisResultful<Object> updateResource(SysResourceInfoModel model);

    @Transactional
    BasisResultful<Object> setResourceStatus(Long resourceId,Integer status);
}
